unit uCode;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Buttons;

type
  TFrmCode = class(TForm)
    EdtCode: TEdit;
    BitBtn1: TBitBtn;
    BitBtn2: TBitBtn;
    procedure BitBtn1Click(Sender: TObject);
    procedure FormCreate(Sender: TObject);
    procedure BitBtn2Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
    bOK : Boolean;
  end;

var
  FrmCode: TFrmCode;

implementation

{$R *.dfm}

procedure TFrmCode.BitBtn1Click(Sender: TObject);
begin
  if edtcode.Text = 'wsy018' then bOk := True else bok := False;
  close;
end;

procedure TFrmCode.FormCreate(Sender: TObject);
begin
  bOK := False;
end;

procedure TFrmCode.BitBtn2Click(Sender: TObject);
begin
  close;
end;

end.
